<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/24
 * Time: 15:12
 */
namespace app\api\model;

class Image extends BaseModel {

    protected $hidden = ['id','from','delete_time', 'update_time'];

    /**
     * tp5获取器，修改image表中的url参数
     * @param $value
     * @return string
     */
    public function getUrlAttr($value,$data){
        return $this->prefixImgUrl($value,$data);
    }
}